<?php
	class CommonAction extends Action{
		public function _initialize(){
			if(method_exists($this, '__auto')){
				$this->__auto();
			}
			$this->setNav();
		}
		// 导航
		private function setNav(){
			$db=D('Category');
			$nav=$db->getCategoryLevel(0);
			$this->assign('nav',$nav);
		}
	}
?>